package com.diy.common.dao;

/**
 * Created by GY on 2015/11/22.
 */
public class TotalCountContainer {

    private static final ThreadLocal<Integer> THREAD_LOCAL = new ThreadLocal<Integer>() {
        @Override
        protected Integer initialValue() {
            return 0;
        }
    };

    public static void set(int value) {
        THREAD_LOCAL.set(value);
    }

    public static int get() {
        return THREAD_LOCAL.get();
    }

    public static void remove() {
        THREAD_LOCAL.remove();
    }
}